package step

import (
	_interface "adam2/internal/quant/interface"
)

type CalculateQuantDataStep struct {
	calculateQuantMaData   *_interface.CalculateData
	calculateQuantBiasData *_interface.CalculateData
}

// 初始化
func (c *CalculateQuantDataStep) Init(calculateQuantMaData *_interface.CalculateData, calculateQuantBiasData *_interface.CalculateData) {
	c.calculateQuantMaData = calculateQuantMaData
	c.calculateQuantBiasData = calculateQuantBiasData
}

// 执行
func (c *CalculateQuantDataStep) Exec(transactionDate string) {
	(*c.calculateQuantMaData).Exec(transactionDate)
	(*c.calculateQuantBiasData).Exec(transactionDate)
}
